#22 new
celeretaudax

undefined method 'label_tag'

Reported by celeretaudax | October 21st, 2008 @ 01:52 PM

In views/users/new.html.erb, usage of label_tag needs to be changed to label because of use inside of a form_for helper.

Recommended changes:

Sign up as a new user

<% @user.password = @user.password_confirmation = nil %>

<%= error_messages_for :user %> <% form_for :user, :url => users_path do |f| -%>

<%= f.label 'login' %>
<%= f.text_field :login %>

<%= f.label 'email' %>
<%= f.text_field :email %>

<%= f.label 'password' %>
<%= f.password_field :password %>

<%= f.label 'password_confirmation', 'Confirm Password' %>
<%= f.password_field :password_confirmation %>

<%= submit_tag 'Sign up' %>

<% end -%>

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.

http://github.com/technoweenie/restful-authentication/tree

People watching this ticket

Pages